import sympy as sp

if __name__ == '__main__':
    x = sp.symbols('x')
    f = sp.sin(x)
    val = sp.integrate(f,(x,0,sp.pi/4))
    print(f"sin(x) [0,pi/4] 积分 {val}")